Fk:loadTranslationTable{
  ["plum__yuzhi_analeptic"] = "鱼炙[酒]",
  [":plum__yuzhi_analeptic"] = ""
}

local mark_tab = { "#plum__yuzhi-heat", "#plum__yuzhi-smelly", "#plum__rotted" }

local T = require "packages.tuntian_studio.utility"

local yuzhi = fk.CreateSkill{
  name = "plum__yuzhi_analeptic",
}

yuzhi:addEffect("viewas", {
  pattern = T.cardFix("analeptic"),
  card_num = 1,
  card_filter = function (self, player, to_select, selected, selected_targets)
    if #selected == 0 then
      return Fk:getCardById(to_select):getMark("@plum__yuzhi-inhand") == Fk:translate(mark_tab[2])
    else
      return false
    end
  end,
  view_as = function (self, player, cards)
    if #cards ~= 1 then return end
    local card = Fk:cloneCard(T.cardFix("analeptic"))
    card.skillName = "plum__yuzhi"
    card:addSubcards(cards)
    return card
  end,
})

return yuzhi